package com.achobeta.recruitment.dao.interact;

import com.achobeta.recruitment.model.Feedback;
import com.achobeta.recruitment.model.vo.FeedbackVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FeedbackMapper {
    int insert(Feedback row);

    int insertSelective(Feedback row);

    Feedback selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Feedback row);

    int updateByPrimaryKey(Feedback row);

    /**
     * 获取未读反馈的条数
     * @return
     */
    Long getNotAwareNumber();

    /**
     * 获取反馈列表
     * @return
     */
    List<FeedbackVO> getAllFeedback();
}